function delEmp(obj) {
    var tds = $(obj).parent().parent().find('td');
    var id=tds.eq(0).text();
    $('#delcfmModel').modal('show');

    $('#empDel').click(function(){
        $.ajax({
            type: 'post',
            url: 'http://localhost:8066/Emp/deleteByPrimaryKey',
            data: '{"id":"'+id+'"}',
            dataType: 'json',
            contentType: "application/json; charset=utf-8",
            success: function(result) {
                    console.log(result);
                    location.reload();
            }
        });
        $('#delcfmModel').modal('hide');

    });
}

